package com.atxiaodei.nio.nioday01;

/**
 * @ClassName Test
 * @Deacription TODO
 * @Author 王盟
 * @Date 2021/1/21 11:26
 * @Version 1.0
 **/
public class Test {


        public static void main(String[] args) {
            String str1 = "hello now coder";
            String[] strsplit = str1.split(" ");
            String  s2=strsplit[strsplit.length-1];
            System.out.println(s2.length()+"------>");
        }


}
